<%-- 
    Document   : left_menu
    Created on : Nov 9, 2011, 9:10:57 PM
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <style type="text/css">
            body{
                background-color: #f0f0f0;
            }
        </style>
        <script src="jquery.js"></script>
        <script src="ajax.js"></script>
        <script type="text/javascript">
            $(document).ready(function(){
                $("li#menu").click(function(){
                    $(this).children().toggle("slow")
                        
                })
                $("li:not(li#menu)").click(function(){
                    var param = encodeURIComponent(this.getAttribute("class")) + '&material=' + encodeURIComponent(this.innerHTML)
                    var url = 'pictures.jsp?type=' + param
                    top.main_frame.location=url
                    return false
                })
            })
            
            function writeList() {
                ajax("http://localhost:8080/wobblyduckling/listGenerator" ,false, function() {
                    $("ul#submenu").hide() 
                })
            }
        </script>
    </head>
    <body>
        <div id="res"></div>
        <form method="link" action="user/profile.jsp" target="main_frame">
            <input type="submit" value="Login"/>
        </form>
        <script>
            writeList();
        </script>
    </body>
</html>
